package com.some;

import java.util.Scanner;

public class XiaoHongShu01 {
    public int findKNum(int[] nums, int k) {
        int length = nums.length;
        int result = k % length;
        return nums[result - 1];
    }

    public static void main(String[] args) {
        XiaoHongShu01 xiaoHongShu01 = new XiaoHongShu01();
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(); // 序列长度
        int m = sc.nextInt(); // 序列镜像次数
        int k = sc.nextInt(); // 第k位的数值

        int[] nums = new int[n * 2];
        for (int i = 0; i < n; i++) {
            nums[i] = sc.nextInt();
        }
        int index = 0;
        for (int i = nums.length - 1; i >= n; i--) {
            nums[i] = nums[index++];
        }
        System.out.println(xiaoHongShu01.findKNum(nums, k));
    }
}
